I wrote a program to easily train a continuous-state Mealy machine and perform inference with Monte Carlo simulations.